package shared.runtime

import shared.file._
import shared.message._
import org.jgroups._

class RuntimeImpl (val filesystem: Filesystem, val responseHandler: ResponseHandler, val channel: ChannelAdaptor, val jchannel: JChannel, val channelName: String)extends Runtime {

  val receiver = new MessageReceiver(this);
  {
    jchannel.setReceiver(receiver)
    jchannel.connect("<defaultChannel>")
  }
  
  import java.net._
  
  val host = InetAddress.getLocalHost.getHostName
  val username = System.getProperty("user.name")
  
}
